package com.woniuxy.service;

import com.work.framework.pojo.Bidder;
import com.work.framework.pojo.BiddingRecord;
import com.work.framework.pojo.ResultDTO;
import java.util.List;

/**
 * @author kyle
 * @date 2019-09-18 11:48
 */


public interface AuctionService {

    ResultDTO addBiddingRecord(BiddingRecord biddingRecord);

    ResultDTO updateBiddingRecord(BiddingRecord biddingRecord);

    ResultDTO findMaxPriceByUidAndAid(BiddingRecord record);

    ResultDTO verifyUserQualification(Integer aid, Integer uid);

    List<Bidder> findBiddersByAid(Integer aid);

    ResultDTO insertBidder(Integer aid, Integer uid);

    List<BiddingRecord> findBiddingRecord(Integer aid);

    Bidder findBidder(Bidder bidder);

    Boolean auctionEnd(Integer aid);
}
